package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffAccountSubjectDto
 * @使用场景
 */
@Data
public class BffAccountSubjectDto implements Serializable {

    /**
     * 科目ID
     */
    @ApiModelProperty("科目ID")
    private String accountSubjectld;

    /**
     * 科目名称
     */
    @ApiModelProperty("科目名称")
    private String accountSubjectName;
    /**
     * 科目标识
     */
    @ApiModelProperty("科目标识")
    private String accountSubjectCode;

    /**
     * 科目类型 NATIONAL_STANDARD:国家标准 DEPT_ORG_STANDARD:部门组织标准 CONTNET_STANDARD:内容标准 CONTENT_SELFDOM:内容个性
     */
    @ApiModelProperty("科目类型")
    private String accountSubjectType;

    /**
     * 收支类型 INCOME:收入 SPENDING:支出
     */
    @ApiModelProperty("收支类型")
    private String incomeExpensesType;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffAccountSubjectDto that = (BffAccountSubjectDto) o;
        return accountSubjectld == that.accountSubjectld && accountSubjectName == that.accountSubjectName && accountSubjectCode == that.accountSubjectCode && accountSubjectType == that.accountSubjectType && incomeExpensesType == that.incomeExpensesType && subjectLifeCycle == that.subjectLifeCycle && operationInductionId == that.operationInductionId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && operateTime == that.operateTime;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), accountSubjectld, accountSubjectName, accountSubjectCode, accountSubjectType, incomeExpensesType, subjectLifeCycle, operationInductionId, userFace, idCardName, nickName, operateTime);
    }

}
